<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>
	<!-- content starts -->
	<blockquote class="layui-elem-quote"><{$action}></blockquote>
	<div class="layui-tab layui-tab-card">
		<ul class="layui-tab-title">
			<li <{if isset($type) AND $type == 1}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/1">网校详情</a></li>
			<li <{if isset($type) AND $type == 2}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/2">网校老师</a></li>
			<!-- <li <{if isset($type) AND $type == 3}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/3">网校课程</a></li> -->
			
			<!-- <li <{if $type == 4}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/4">开通题库分类</a></li>
			<li <{if $type == 5}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/5">开通录播课</a></li> -->
			<li <{if isset($type) AND $type == 6}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/6">网校权限管理</a></li>
			<li <{if isset($type) AND $type == 7}>class="layui-this"<{/if}>><a href="/subject/school_tiku/0/<{$school_info['id']}>">网校题库</a></li>
			<li <{if isset($type) AND $type == 8}>class="layui-this"<{/if}>><a href="/question_topic/index/0/<{$school_info['id']}>">网校问答&话题</a></li>
			<li <{if isset($type) AND $type == 9}>class="layui-this"<{/if}>><a href="/news/index/0/<{$school_info['id']}>">网校资讯</a></li>
			<li <{if isset($type) AND $type == 11}>class="layui-this"<{/if}>><a href="/school_course?school_id=<{$school_info['id']}>">网校课程</a></li>
			<li <{if isset($type) AND $type == 12}>class="layui-this"<{/if}>><a href="/school/order_record/<{$school_info['id']}>">网校消费记录</a></li>
			<li <{if isset($type) AND $type == 13}>class="layui-this"<{/if}>><a href="/user/index/0/0/0/1/0/0/<{$school_info['id']}>">学员列表</a></li>
		</ul>
	</div>
	<fieldset class="layui-elem-field">
		<legend>按条件搜索</legend>
		<div class="layui-field-box">
			<form class="layui-form layui-form-pane1" method="post">
				<div class="layui-form-item">
					<div class="layui-inline">
						<input type="text" name="school_name" placeholder="网校名称" value="<{if isset($conditions['school_name']) AND $conditions['school_name'] != 0}><{$conditions['school_name']}><{/if}>" class="layui-input">
					</div>

					<div class="layui-inline">
						<button type="submit" class="layui-btn">搜索</button>
					</div>
				</div>
			</form>
		</div>
	</fieldset>
	<form class="layui-form layui-form-pane1" method="post" delete_action="/school/delete">
		<table class="layui-table" lay-even lay-skin="row">
			<thead>
				<tr>
					<th>网校名称</th>
					<th>商品名称</th>
					<th>代理商</th>
					<th>代理商提成</th>
					<th>价格</th>
					<th>数量</th>
					<th>总价格</th>
					<th>消费时间</th>
					<!-- <th>操作</th> -->
				</tr>
			</thead>
			<tbody>
			<{foreach from=$record_list item=item}>
				<tr>
					<td class="center"><{$item['school_name']}></td>
					<td class="center"><{if $item.data_type == 1}><{$item['title']}><{else}><{$item['ctitle']}><{/if}></td>
					<td class="center"><{$item['agent_name']}></td>
					<td class="center"><{if $item['points'] > 0}><{$item['points']}>%<{/if}></td>
					<td class="center"><{$item['price']}></td>
					<td class="center"><{$item['num']}></td>
					<td class="center"><{$item['price']*$item['num']}></td>
					<td class="center"><{$item['add_time']|date_format:'%Y-%m-%d <br> %H:%M:%S'}></td>
					<!-- <td class="center">
					<a class="layui-btn layui-btn-primary layui-btn-small" href="/school/edit/<{$item['id']}>" target="_blank"><i class="layui-icon"></i></a>
					<a class="layui-btn layui-btn-primary layui-btn-small delete_data" href="/school/delete/<{$item['id']}>"><i class="layui-icon"></i></a>
					</td> -->
				</tr>
			<{/foreach}>
			</tbody>
		</table>
	</form>
	<div class="layui-box layui-laypage layui-laypage-default">
		<{$pagination}>
	</div>

<{include file="public_html/footer.html"}>
